package com.selenium.dinner;

import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverCommandProcessor;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import com.thoughtworks.selenium.DefaultSelenium;

public class Main {
	
	@Test
	public void testMain() throws Exception{
		
		/* Set Property Browser in Chrome Driver */
// 		Untuk Mac Ika
		System.setProperty("webdriver.chrome.driver" , "/Users/maretska/Documents/chromedriver");
		WebDriver driver = new ChromeDriver();
		
		/* Set Property Browser in firefox Driver */
//		Untuk Mac Buddy
//		WebDriver driver = new FirefoxDriver();
		DefaultSelenium selenium = new DefaultSelenium(new WebDriverCommandProcessor("http://www.google.com", driver));

		DinnerRatRev dinner = new DinnerRatRev();
		dinner.testSignIn(selenium, driver);
		Gallery gallery = new Gallery();
		gallery.testTallery(selenium, driver);
		TodaysMenu todayMenu = new TodaysMenu();
		todayMenu.testTodaysMenu(selenium, driver);
		PreviousMenu previousMenu = new PreviousMenu();
		previousMenu.testPreviousMenu(selenium, driver);
	}
}
